package com.mpsc.sharding.controller;


import com.mpsc.api.bean.RoleInfoEntity;
import com.mpsc.sharding.service.RoleInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/roleInfo")
@Api(value = "RoleInfoController", tags = "角色管理")
public class RoleInfoController {

    @Autowired
    private RoleInfoService roleInfoService;

    @PostMapping("/saveRoleInfo")
    @ApiOperation("保存角色信息信息")
    public void saveRoleInfo(@RequestBody RoleInfoEntity role){
        roleInfoService.saveRoleInfo(role);
    }
}
